package com.example.design.strategy.cooking;

/**
 * @Description 厨房-环境（Context）类
 * @ClassName Kitchen
 * @Author Yumuhui
 * @Date 2020/5/15 0:53
 * @Version 1.0.0
 */
public class Kitchen {
    private CookingFish strategy;

    public CookingFish getStrategy() {
        return strategy;
    }

    public void setStrategy(CookingFish strategy) {
        this.strategy = strategy;
    }

    public void cooking(){
        strategy.cookingMethod();
    }
}
